package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysUserStudentMapper;
import com.ruoyi.system.domain.SysUserStudent;
import com.ruoyi.system.service.ISysUserStudentService;

/**
 * yonghuService业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-10
 */
@Service
public class SysUserStudentServiceImpl implements ISysUserStudentService 
{
    @Autowired
    private SysUserStudentMapper sysUserStudentMapper;

    /**
     * 查询yonghu
     * 
     * @param userId yonghu主键
     * @return yonghu
     */
    @Override
    public SysUserStudent selectSysUserStudentByUserId(Long userId)
    {
        return sysUserStudentMapper.selectSysUserStudentByUserId(userId);
    }

    /**
     * 查询yonghu列表
     * 
     * @param sysUserStudent yonghu
     * @return yonghu
     */
    @Override
    public List<SysUserStudent> selectSysUserStudentList(SysUserStudent sysUserStudent)
    {
        return sysUserStudentMapper.selectSysUserStudentList(sysUserStudent);
    }

    /**
     * 新增yonghu
     * 
     * @param sysUserStudent yonghu
     * @return 结果
     */
    @Override
    public int insertSysUserStudent(SysUserStudent sysUserStudent)
    {
        return sysUserStudentMapper.insertSysUserStudent(sysUserStudent);
    }

    /**
     * 修改yonghu
     * 
     * @param sysUserStudent yonghu
     * @return 结果
     */
    @Override
    public int updateSysUserStudent(SysUserStudent sysUserStudent)
    {
        return sysUserStudentMapper.updateSysUserStudent(sysUserStudent);
    }

    /**
     * 批量删除yonghu
     * 
     * @param userIds 需要删除的yonghu主键
     * @return 结果
     */
    @Override
    public int deleteSysUserStudentByUserIds(Long[] userIds)
    {
        return sysUserStudentMapper.deleteSysUserStudentByUserIds(userIds);
    }

    /**
     * 删除yonghu信息
     * 
     * @param userId yonghu主键
     * @return 结果
     */
    @Override
    public int deleteSysUserStudentByUserId(Long userId)
    {
        return sysUserStudentMapper.deleteSysUserStudentByUserId(userId);
    }
}
